Prefix Codes: Equiprobable Words, Unequal Letter Costs
نویسندگان
چکیده
We consider the following variant of Huffman coding in which the costs of the letters, rather than the probabilities of the words, are non-uniform: “Given an alphabet of r letters of nonuniform length, find a minimum-average-length prefix-free set of n codewords over the alphabet;” equivalently, “Find an optimal r-ary search tree with n leaves, where each leaf is accessed with equal probability but the cost to descend from a parent to its ith child depends on i.” We show new structural properties of such codes, leading to an O(n log r)-time algorithm for finding them. This new algorithm is simpler and faster than the best previously known O(nr min{logn, r})-time algorithm due to Perl, Garey, and Even [7].
منابع مشابه
A Dynamic Programming Algorithm for Constructing Optimal Prefix-Free Codes with Unequal Letter Costs
We consider the problem of constructing prefix-free codes of minimum cost when the encoding alphabet contains letters of unequal length. The complexity of this problem has been unclear for thirty years with the only algorithm known for its solution involving a transformation to integer linear programming. In this paper we introduce a new dynamic programming solution to the problem. It optimally...
متن کاملOptimal Prefix-Free Codes for Unequal Letter Costs: Dynamic Programming with the Monge Property
In this paper we discuss a variation of the classical Huffman coding problem: finding optimal prefix-free codes for unequal letter costs. Our problem consists of finding a minimal cost prefix-free code in which the encoding alphabet consists of unequal cost (length) letters, with lengths α and β. The most efficient algorithm known previously required O(n) time to construct such a minimal-cost s...
متن کاملA Dynamic Programming Algorithm for Constructing Optimal Refix-Free Codes for Unequal Letter Costs
We consider the problem of constructing prefix-free codes of minimum cost when the encoding alphabet contains letters of unequal length. The complexity of this problem has been unclear for thirty years with the only algorithm known for its solution involving a transformation to integer linear programming. In this paper we introduce a new dynamic programming solution to the problem. It optimally...
متن کاملThe Structure of Optimal Prefix-Free Codes in Restricted Languages: The Uniform Probability Case
In this paper we discuss the problem of constructing minimum-cost, prefix-free codes for equiprobable words under the assumption that all codewords are restricted to belonging to an arbitrary language L and extend the classes of languages to which L can belong. Varn Codes are minimum-cost prefix-free codes for equiprobable words when the encoding alphabet has unequal-cost letters. They can be m...
متن کاملThe Structure of Optimal Prefix-Free Codes in Restricted Languages: the Uniform Probability Case (Extended Abstract)⋆
In this paper we discuss the problem of constructing minimum-cost, prefix-free codes for equiprobable words under the assumption that all codewords are restricted to belonging to an arbitrary language L and extend the classes of languages to which L can belong. Note: This extended abstract is essentially the version which appears in The proceedings of WADS’05, but with extra diagrams added. Var...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- SIAM J. Comput.
دوره 25 شماره
صفحات -
تاریخ انتشار 1994